import axios from '@/request/http';
import base from "../base";
// import QS from 'qs';

const user = {
    userAll(){
        return axios.get(`${base.sq}/user`)
    },
    userId(id){
        return axios.get(`${base.sq}/user?id=${id}`)
    },
    userRegist(user){
        return axios.post(`${base.sq}/user`,{
            ...user
        })
    },
    userLogin(phone,passWord){
        return axios.get(`${base.sq}/user`,{
            params : {
                phone : phone,
                passWord : passWord
            }
        })
    },
}

export default user;
